<!DOCTYPE html>
<html>
<head>
  <title>Tcloud</title>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
  <![endif]-->  
  <!--[if lte IE 8]>
    <script src="/vendor/angular-ui/angular-ui-ieshiv.js"></script>
    <script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script>
  <![endif]-->  
  <link rel="stylesheet" href="/static/vendor/bootstrap/bootstrap.css" type="text/css" />
  <link rel="stylesheet" href="/static/vendor/bootstrap/bootstrap-responsive.css" type="text/css" />
  <link rel="stylesheet" href="/static/vendor/bootstrap/bootstrap-datepicker.css" type="text/css"/>
  <link rel="stylesheet" href="/static/vendor/bootstrap/bootstrap-timepicker.css" type="text/css"/>
  <!--link rel="stylesheet" href="/static/vendor/angular-ui/angular-ui.css" type="text/css" /-->
  <link rel="stylesheet" href="/static/vendor/jquery-ui/jquery-ui.css" type="text/css" />
  <link rel="stylesheet" href="/static/vendor/jquery.ztree/jquery.ztree.css" type="text/css" />
  <link rel="stylesheet" href="/static/vendor/fullcalendar/fullcalendar.css" type="text/css" />
  <link rel="stylesheet" href="/static/stylesheets/bootstrap-override.css" type="text/css" />  
  <link rel="stylesheet" href="/static/stylesheets/style.css" type="text/css" />
  <link rel="stylesheet" href="/static/stylesheets/chart.css" type="text/css" />
    <link rel="stylesheet" href="/static/stylesheets/multi-select.css" type="text/css" />
  <script src="/static/vendor/jquery/jquery-1.7.2.js" type="text/javascript"></script>
  <script src="/static/vendor/highcharts/highcharts.js" type="text/javascript"></script>
  <!--script src="/static/vendor/jquery_ujs.js" type="text/javascript"></script-->
  <script src="/static/vendor/jquery-ui/jquery-ui.js" type="text/javascript"></script>  
  <script src="/static/vendor/jquery-ui/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
  <script src="/static/vendor/jquery.layout.js" type="text/javascript"></script>
  <script src="/static/vendor/angular/angular.js" type="text/javascript"></script>
  <script src="/static/vendor/angular/angular-resource-latest.js" type="text/javascript"></script>
  <script src="/static/vendor/angular/angular-cookies.js" type="text/javascript"></script>
  <!--script src="/static/vendor/angular-ui/angular-ui.js" type="text/javascript"></script-->
  <script src="/static/vendor/angular-ui/ui-date.js" type="text/javascript"></script>
  <script src="/static/vendor/angular-ui/bootstrap-transition.js" type="text/javascript"></script>
    <script src="/static/vendor/angular-ui/ui-bootstrap-tpls-0.3.0.js" type="text/javascript"></script>
    <!-- ui-bootstrap-tpls-0.3.0.js中的dialog模块会覆盖bootstrap-dialog.js,引入背景不遮盖的bug，所以bootstrap-dialog.js必须放到ui-bootstrap-tpls-0.3.0.js后面 -->
    <script src="/static/vendor/angular-ui/bootstrap-dialog.js" type="text/javascript"></script>
    <script src="/static/vendor/angular-ui/bootstrap-modal.js" type="text/javascript"></script>
  <script src="/static/vendor/fullcalendar/fullcalendar.js" type="text/javascript"></script>
  <script src="/static/vendor/fullcalendar/gcal.js" type="text/javascript"></script>
  <script src="/static/vendor/angular-ui/calendar.js" type="text/javascript"></script>
  <script src="/static/vendor/bootstrap/bootstrap.js" type="text/javascript"></script>
  <script src="/static/vendor/jquery.ztree/jquery.ztree.all-3.5.js" type="text/javascript"></script>
  <script src="/static/vendor/angular/angular-strap.js" type="text/javascript"></script>
  <script src="/static/vendor/bootstrap/bootstrap-datepicker.js" type="text/javascript"></script>
  <script src="/static/vendor/bootstrap/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="/static/vendor/jquery.multi-select.js" type="text/javascript"></script>
    <script src="/static/vendor/base64.min.js" type="text/javascript"></script>
    <script src="/static/vendor/angular-file-upload.min.js" type="text/javascript"></script>
  <script src="/static/javascripts/context_menu.js" type="text/javascript"></script>
  <script src="/static/javascripts/dialog_controllers.js" type="text/javascript"></script>
  <script src="/static/javascripts/action_controllers.js" type="text/javascript"></script>
  <script src="/static/javascripts/utils.js" type="text/javascript"></script>
  <script src="/static/javascripts/directives.js" type="text/javascript"></script>
  <script src="/static/javascripts/services.js" type="text/javascript"></script>
  <script src="/static/javascripts/interval.js" type="text/javascript"></script>
  <script src="/static/javascripts/filters.js" type="text/javascript"></script>
  <script src="/static/javascripts/controllers.js" type="text/javascript"></script>
  <script src="/static/javascripts/app.js" type="text/javascript"></script>
  <script src="/static/javascripts/login.js" type="text/javascript"></script>
  <script src="/static/vendor/DatePicker/WdatePicker.js" type="text/javascript"></script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="shortcut icon" href="/static/images/favicon.ico" />
</head>
<body ng-app="Cvirt">
  
<div class="modal hide fade loading-indicator-modal">
  <div class="loading-indicator"></div>
</div>

<!-- topbar starts -->
<div class="navbar navbar-fixed-top">
	<ng-include src="'header.html'"></ng-include>
</div>
<!-- topbar ends -->

<div class="ui-layout-center">
  <div ng-view>
  </div>
</div>

<div class="ui-layout-west" style="padding:5px;"> 

    <div class="row-fluid">

    <treesearch></treesearch>

    <searchtree url="/api/tree_list"/>
    </div>
</div>

<div class="ui-layout-south ">
    <ng-include src="'activities.html'"></ng-include>
</div>

<div id="right-click-menu" ng-controller="ContextMenuCtrl">
  <ul class="datacenters contextmenu-list" ng-controller="DataCenterContextMenuCtrl">
    <a ng-click="add_cluster()"><li class="contextmenu-item">新建集群</li></a>
    <a ng-click="add_storage()"><li class="contextmenu-item">新建存储</li></a>
    <a ng-click="add_network()"><li class="contextmenu-item">新建网络</li></a>
  </ul>
  
  <ul class="clusters contextmenu-list" ng-controller="ClusterContextMenuCtrl">
      <a ng-click="add_storage()"><li class="contextmenu-item">添加存储</li></a>
      <a ng-click="add_network()"><li class="contextmenu-item">添加网络</li></a>
      <li class="context-menu-separator"></li>
      <a ng-click="delete()"><li class="contextmenu-item"><i class="icon-remove"></i>删除</li></a>
  </ul>
  
  <ul class="hosts contextmenu-list" ng-controller="HostContextMenuCtrl">    
    <a ng-click="do_start()"><li class="contextmenu-item">启动服务器</li></a>
    <a ng-click="do_shutdown()"><li class="contextmenu-item">关闭服务器</li></a>
    <a ng-click="do_reboot()"><li class="contextmenu-item">重启服务器</li></a>
    <a ng-click="add_vm()"><li class="contextmenu-item">创建虚拟机</li></a>
    <a ng-click="start_all_vms()"><li class="contextmenu-item">启动所有虚拟机</li></a>
    <a ng-click="shutdown_all_vms()"><li class="contextmenu-item">关闭所有虚拟机</li></a>
    <!--<a ng-click="do_maintain()"><li class="contextmenu-item">进入维护模式</li></a>-->
    <a ng-click="do_remove()"><li class="contextmenu-item">删除</li></a>
  </ul>
     
  <ul class="vms contextmenu-list" ng-controller="VMContextMenuCtrl">
    <a ng-click="do_edit()"><li class="contextmenu-item"><i class="icon-user"></i>修改配置</li></a>
    <a ng-click="do_migrate()"><li class="contextmenu-item">迁移</li></a>
    <li class="context-menu-separator"></li>
    <a ng-click="do_start()"><li class="contextmenu-item"><i class="icon-play"></i>启动</li></a>
    <a ng-click="do_suspend()"><li class="contextmenu-item"><i class="icon-pause"></i>暂停</li></a>
    <a ng-click="do_reboot()"><li class="contextmenu-item">重启</li></a>
    <a ng-click="do_shutdown()"><li class="contextmenu-item">关机</li></a>
    <a ng-click="do_shutdown(true)"><li class="contextmenu-item">强制关闭</li></a>
    <li class="context-menu-separator"></li>
    <a ng-click="do_snapshot()"><li class="contextmenu-item">快照</li></a>
    <!--<a ng-click="do_backup()"><li class="contextmenu-item">备份</li></a>
    <a ng-click="do_recovery()"><li class="contextmenu-item">从备份恢复</li></a>-->
    <li class="context-menu-separator"></li>
    <a ng-click="do_delete()"><li class="contextmenu-item"><i class="icon-remove-sign"></i>删除</li></a>
  </ul>

</div>
<iframe id="iframe_vnc{{ v.id }}" src="{{v.vnc_url}}" width="0" height="0" ng-repeat="v in vnc_conns"></iframe>
<ng-include src="'ng-templates.html'"></ng-include>
</body>
</html>

